import {
    get,
    post
} from '@/utils/request'
import store from '@/store'


//获取短信接口
export const getSmsCode = (phone) => get('/user/sendSmsCode', {
    phone
})
 
export const paySms = params => post('/pay/paysms', params)
export const payment = params => post('/pay/payment', params)
export const queryOrder = params => post('/pay/queryOrder', params)
//支付
export const paySign = params => post('/pay/sign', params)

//支付
export const paySignSms = params => post('/pay/getsignsms', params)

//支付
export const payent = (type) => post('/pay/index',{
    type
}) 

//获取详情
export const getInfo = () => get('/Authentication/getUserInfo')

//登录与注册
export const Logins = (data) => post('/user/login', data)

//退出登录
export const getOut = () => post('/user/logout')

/**
 * @description { 实名认证 }
 * @param { realseName } 真实姓名
 * @param { idCard } 身份证号码
 * @type { post }
 */
export const authIdentity = (data) => post('/authentication/saveIdentityData', data)

/**
 * @description { 绑定银行卡 }
 * @param { bankCard } 银行卡号
 * @param { bankName } 银行名称
 * @param { bankPhone } 银行预留手机号
 * @type { post }
 */

export const authBank = (data) => post('/authentication/saveBankData',data)